#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QComboBox>
#include<QMessageBox>
#include<QFontComboBox>
#include<QLabel>
#include<QLineEdit>
#include<QPushButton>
#include<QPlainTextEdit>
#include<QRadioButton>
#include <QSpinBox>
#include<QDateTime>
#include<QDate>
#include<QTime>
#include <QDateEdit>
#include<QScrollBar>
#include<QKeySequenceEdit>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    //Qcombox例子
private:
    Ui::Widget *ui;
    QComboBox * combox;


private slots:
    void comboxSlot(const QString &text);
private:
    QFontComboBox *qfontCombox;
    QLabel *label;

private slots:
    void showlabels(const QFont &font);


private:
    QLabel *label1;
    QLineEdit *lineedit;
    QPushButton *btn1;

private slots:
    void clickBtnSlot();

private:
    QPlainTextEdit *palintext;
    QRadioButton *radiobtn;
    QSpinBox *spinbox;

private slots:

    void radiobtnslot(bool checked);
    void spinboxValueChanged(int x);

private:
    QDateTimeEdit *dt1;
    QDateEdit *dt2;

    QTimeEdit *tm;
    QScrollBar *hscrollbar;
    QScrollBar *vscrollbar;
    QKeySequenceEdit *kse;

private slots:
    void keyseqeditChanged(const QKeySequence &);



};
#endif // WIDGET_H
